/* 扁平化登录页样式（使用项目中已定义的主题变量） */
body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Microsoft YaHei",sans-serif}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}
.login{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:18px;justify-content:center}
.brand .logo{width:40px;height:40px;border-radius:10px;background:var(--primary)}
.brand .title{margin:0;font-weight:800;font-size:20px}
.desc{color:var(--muted);text-align:center;margin:6px 0 16px}

form{display:grid;gap:14px}
label{font-size:14px;color:var(--muted)}
.field{display:grid;gap:6px}
input[type="text"],input[type="password"]{height:40px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);outline:none}
input[type="text"]:focus,input[type="password"]:focus{border-color:var(--primary)}

.row{display:flex;justify-content:space-between;align-items:center}
.row .remember{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.row a{color:var(--primary);text-decoration:none}
.row a:hover{text-decoration:underline}

button[type="submit"]{height:42px;border:none;border-radius:10px;background:var(--primary);color:#fff;font-weight:700;cursor:pointer}
button[type="submit"]:hover{filter:brightness(0.95)}
button[type="submit"]:active{filter:brightness(0.9)}

.hint{margin-top:10px;color:var(--muted);font-size:13px;text-align:center}

/* 暗色/打印微调 */
@media (prefers-color-scheme: dark){
  input[type="text"],input[type="password"]{background:var(--surface);border-color:var(--border);color:var(--text)}
}
@media print{.auth-page{display:block}.login{box-shadow:none;border:1px solid #bbb}}